package com.xfcy.blog.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.elasticsearch.search.aggregations.metrics.InternalGeoBounds;

import java.time.LocalDateTime;

/**
 * @author 晓风残月Lx
 * @date 2023/4/12 23:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReplyVO {

    /**
     * 评论id
     */
    private Integer id;

    /**
     * 父评论id
     */
    private Integer parentId;

    /**
     *  用户id
     */
    private Integer userId;

    /**
     * 用户昵称
     */
    private String nickname;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 被回复用户id
     */
    private Integer replyUserId;

    /**
     * 被回复用户昵称
     */
    private String replyNickname;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 点赞数
     */
    private Integer likeCount;

    /**
     *  评论时间
     */
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
}
